#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    int ret = -1;
    pid_t pid = -1;
    

    ret = pipe(fds)
    if (-1 == ret){
        perror("pipe");
        return 1;
    }    

    //创建子进程
    pid = fork();
    if(-1 == pid){
        perror("fork")
        return 1
    }

    //子进程
    if(0==pid){
        //关闭写端
    }

    //父进程

    return 0;
}
